import twython
api = twython.setup(username="gaetwbot1",
                    password="gaetwbot1")

res = api.searchTwitter("#gaetwbot")
results = res["results"]

users = []
for result in results:
    users.append(result["from_user"])

print api.updateStatus("@%s Hello!" % users[0])
# or
#print api.updateStatus("@%s %s" % (users[0], "Hello"))







